/**
 * 文件名称：UserServiceImpl.java
 * 文件版权：ChinaParasol Technologies Co., Ltd. Copyright 2000-2020,  All rights reserved
 * 文件描述：<描述>
 * 创建作者：Administrator
 * 创建时间：Jan 5, 2013
 * 修改内容：<修改内容>
 */
package com.parasol.hcerp.service.user.service;

import java.util.List;

import com.parasol.hcerp.service.user.dao.UserDao;
import com.parasol.hcerp.service.user.domain.UserBean;

/**
 * 
 * @author  Administrator
 * @version V1.0, Jan 5, 2013
 */
public class UserServiceImpl implements UserService
{
    
    private UserDao userDao = null;
    
    public UserDao getUserDao()
    {
        return userDao;
    }

    public void setUserDao(UserDao userDao)
    {
        this.userDao = userDao;
    }

    public void deleteForUser(String userid)
    {
        userDao.deleteForUser(userid);
    }
    
    public int login(UserBean userBean)
    {
        return userDao.login(userBean);
    }
    
    public List<UserBean> queryForList()
    {
        return userDao.queryForList();
    }
    
    public UserBean queryForUser(String userid)
    {
        return userDao.queryForUser(userid);
    }
    
    public void saveForUser(UserBean userBean)
    {
        userDao.saveForUser(userBean);
    }
    
    public void updateForUser(UserBean userBean)
    {
        userDao.updateForUser(userBean);
    }

    public int checkExist(UserBean userBean)
    {
        return userDao.checkExist(userBean);
    }

    public UserBean queryForSession(UserBean userBean)
    {
        return userDao.queryForSession(userBean);
    }
    
}
